<?php
/* @var $this yii\web\View */

$this->title = Yii::t('app', '文件上传');
$this->subTitle = Yii::t('app', '文件上传示例');
$this->params['breadcrumbs'][] = $this->title;
?>
<!--BEGIN HEADER-->
<div class="section-header">
    <h3 class="text-standard"><i class="fa fa-fw fa-arrow-circle-right text-gray-light"></i> <?=$this->title?> <small><?=$this->subTitle?></small></h3>
</div>
<!--END HEADER-->
<!--BEGIN BODY-->
<div class="section-body">
    <div class="fileuploads-default-index">
        <h1><?= $this->context->action->uniqueId ?></h1>
        <p>
            This is the view content for action "<?= $this->context->action->id ?>".
            The action belongs to the controller "<?= get_class($this->context) ?>"
            in the "<?= $this->context->module->id ?>" module.
        </p>
        <p>
            You may customize this page by editing the following file:<br>
            <code><?= __FILE__ ?></code>
        </p>
    </div>
</div>
<?=\eric\widgets\FileUpload::widget([
    'multiple' => true,
    'pluginOptions' => [
        'showPreview' => false,
    ]
]);?>
<?=\eric\widgets\FileUpload::widget([
    'multiple' => true,
]);?>
<?=\yii\helpers\Html::button('uploads',[
    'class' => 'btn btn-primary',
    'data-toggle' => 'modal',
    'data-target' => '#file_upload',
]);?>
<!--END BODY-->
<?php
\yii\bootstrap\Modal::begin([
    'options' => [
        'id' => 'file_upload'
    ],
    'size' => \yii\bootstrap\Modal::SIZE_LARGE,
    'header' => '用户面板',
]);
echo \eric\widgets\FileUpload::widget([
    'multiple' => true,
]);
\yii\bootstrap\Modal::end();
?>


